<?php /* Smarty version Smarty 3.1.0, created on 2024-11-02 15:07:36
         compiled from "D:\3lzy\svn\www.uri.com/static/tpl\admin\role_list.html" */ ?>
<?php /*%%SmartyHeaderCode:291756725cfb8a03040-12843786%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '451bb5c933c0c3c6b811c978721e847e1692fa10' => 
    array (
      0 => 'D:\\3lzy\\svn\\www.uri.com/static/tpl\\admin\\role_list.html',
      1 => 1727590703,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '291756725cfb8a03040-12843786',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'roleList' => 0,
    'item' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty 3.1.0',
  'unifunc' => 'content_6725cfb8a705c',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6725cfb8a705c')) {function content_6725cfb8a705c($_smarty_tpl) {?><html>
<head>
<link href="/static/js/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="/static/js/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="container-fluid">
	<div class="page-header" style="margin: 20px 0 20px;">
	    <span style="margin:0 0 20px 10px;">当前位置：角色列表 </span>
	    <a style="position: relative;float: right;margin: 0 50px 20px 0;" href="?g=menu&r=adAdmin/managerole">添加角色</a>
	</div>
	<table class="table table-hover table-condensed">
		<thead>
		<tr>
	        <th width="5%" >id</th>
	        <th width="10%" >角色名</th>
	        <th width="25%" >描述</th>
	        <th width="5%" >状态</th>
	        <th width="10%" >创建者</th>
	        <th width="15%" >创建时间</th>
	        <th width="15%" >最后修改时间</th>
	        <th width="15%" >操作</th>
		</tr>
		</thead>
		<tbody>
     	<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['roleList']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
$_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_loop = true;
?>
       <tr>
       <td height="30"><?php echo $_smarty_tpl->tpl_vars['item']->value['role_id'];?>
</td>
       <td height="30"><?php echo $_smarty_tpl->tpl_vars['item']->value['role_name'];?>
</td>
       <td height="30"><?php echo $_smarty_tpl->tpl_vars['item']->value['desc'];?>
</td>
       <td height="30"><?php if ($_smarty_tpl->tpl_vars['item']->value['status']==1){?>启用<?php }else{ ?>禁用<?php }?></td>
       <td height="30"><?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
</td>
       <td height="30"><?php echo $_smarty_tpl->tpl_vars['item']->value['createdtime'];?>
</td>
       <td height="30"><?php echo $_smarty_tpl->tpl_vars['item']->value['lastmodifiedtime'];?>
</td>
       <td>
        <a href="?g=menu&r=adAdmin/managerole&roleid=<?php echo $_smarty_tpl->tpl_vars['item']->value['role_id'];?>
">编辑资料</a>
        <a href="?g=menu&r=adAdmin/adminpowerpage&roleid=<?php echo $_smarty_tpl->tpl_vars['item']->value['role_id'];?>
">编辑权限</a>
        <a href="javascript:;" onclick="delRole(<?php echo $_smarty_tpl->tpl_vars['item']->value['role_id'];?>
)">删除</a>
       </td>
    </tr>
   	<?php } ?>
    </tbody>
    </table>
</div>
</body>
</html>
<script type="text/javascript">
function delRole(id){
	if(confirm('您确定要删除吗？删除后不可恢复，请谨慎操作！')==true){
		location.href="?g=menu&r=adAdmin/delrole&roleid="+id;
	}else{
		return false;
	}
}

</script><?php }} ?>